package com.yisingle.study.map.one;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import com.yisingle.study.map.one.fragment.MarkerMapFragment;

/**
 * @author jikun
 *         Created by jikun on 2018/3/9.
 *         关于为什么不继承AppCompatActivity,
 *         是这样的  在android4.4.4机型上
 *         如果你的Activity继承的是AppCompatActivity
 *         使用高德导航API
 *         会遇到资源ID异常的崩溃BUG.
 *         如果继承的是FragmentActivity，就不会有
 */

public class MarkerActivity extends FragmentActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_marker);
        MarkerMapFragment markerMapFragment = MarkerMapFragment.newInstance();
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.flContent, markerMapFragment)
                .commitAllowingStateLoss();
    }
}
